package com.dingyang.learn.handmadespringframework.app;

import com.dingyang.learn.handmadespringframework.springframework.BeanPostProcessor;
import com.dingyang.learn.handmadespringframework.springframework.Component;

/**
 * @author dingyang
 */
@Component
public class EmptyBeanPostProcessor implements BeanPostProcessor {

    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        System.out.println(this + " postProcessBeforeInitialization");
        return bean;
    }


    public Object postProcessAfterInitialization(Object bean, String beanName)  {
        System.out.println(this + " postProcessAfterInitialization");
        return bean;
    }

}
